package com.sxit.tdf.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;

/**
 * 模块资源表
 *
 * @author 橙子高🍊
 * @since 2022-02-05
 */
@TableName("tb_module")
@Schema(name = "Module对象", description = "模块资源表")
public class Module implements Serializable {

  private static final long serialVersionUID = 1L;

  @Schema(description = "主键")
  @TableId(value = "id", type = IdType.AUTO)
  private Integer id;

  @Schema(description = "模块编号")
  private String moduleCode;

  @Schema(description = "模块名称")
  private String moduleName;

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getModuleCode() {
    return moduleCode;
  }

  public void setModuleCode(String moduleCode) {
    this.moduleCode = moduleCode;
  }

  public String getModuleName() {
    return moduleName;
  }

  public void setModuleName(String moduleName) {
    this.moduleName = moduleName;
  }

  @Override
  public String toString() {
    return "Module{"
        + "id="
        + id
        + ", moduleCode="
        + moduleCode
        + ", moduleName="
        + moduleName
        + "}";
  }
}
